#include"TcpServer.hpp"
#include<memory>
#include"Comm.hpp"
using namespace std;


int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        cout<<"Usage:\n     ./udp_echo_server <port>"<<endl;
        return Usage_Err;
    }

    uint16_t port=stoi(argv[1]);
    TcpServer* usvr=new TcpServer(port);
    
    usvr->Init();
    usvr->Start();
    return 0;
}